﻿using System;

class ReadingIntegerFromConsole
{
    static void Main()
    {
        Console.WriteLine("A program that sums three integer numbers.");
        Console.WriteLine("Enter the first number:");

        string consoleInput = Console.ReadLine();
        int integerOne = int.Parse(consoleInput);

        Console.WriteLine("Enter the second number:");

        consoleInput = Console.ReadLine();
        int integerTwo = int.Parse(consoleInput);

        Console.WriteLine("Enter the third number:");

        consoleInput = Console.ReadLine();
        int integerThree = int.Parse(consoleInput);
        int sum = integerOne + integerTwo + integerThree;

        Console.WriteLine("The sum of the three numbers is {0}.", sum);
    }
}
